﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;

namespace LuoYi.Admin.Entities;

/// <summary>
/// 用户与岗位关联表
/// </summary>
[PrimaryKey("UserId", "PostId")]
[Table("sys_user_post")]
public class SysUserPost : IEntity
{
    /// <summary>
    /// 用户ID
    /// </summary>
    [Key]
    [Column("user_id", TypeName = "bigint(20)")]
    public long UserId { get; set; }

    /// <summary>
    /// 岗位ID
    /// </summary>
    [Key]
    [Column("post_id", TypeName = "bigint(20)")]
    public long PostId { get; set; }
}
